const { createProxyMiddleware } = require('http-proxy-middleware');
const myproxy = createProxyMiddleware({
 target: 'https://restapi.amap.com',
changeOrigin: true,
 pathRewrite: {
'^/gaode': ''
  },
});
const proxy = function (app) {
  app.use('/gaode', myproxy);
};
module.exports = proxy;